package com.yjd.comm.order.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.order.model.OrderNoFactoryModel;

/**
 * <b>description</b>：订单编号工厂表业务接口<br>
 * <b>time</b>：2017-08-17 13:05:17 <br>
 * <b>author</b>：  carl
 */
public interface IOrderNoFactoryService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public OrderNoFactoryModel insert(OrderNoFactoryModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(OrderNoFactoryModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param order_no
	 * @return
	 * @throws Exception
	 */
	public int delete(long order_no) throws Exception;

}
